package vcp.models;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.Observable;

import vcp.common.AbstractModel;
import client.Message;
import control.SimpleClient;
import db.parking.beans.Subscriber;

public class SubscriptionModelRegular  extends AbstractModel{
	
	public void AddRegularSubscriber(Subscriber bean) {
	
		client = SimpleClient.getInstance();
		client.addPropertyChangeListener(this);
		
		Message msg = new Message(bean,"AddRegularSubscriber");
		 try {
				client.sendToServer(msg);
				//Thread.sleep(500);
				// msg = client.getReturnMsg();
		 }
		 catch (Exception ex)
		 {
			 System.out.println(ex.toString()+" Subscription->AddRegularSubscriber");
		 }
		 
	//setChanged();
	//notifyObservers(msg);				
	}

   
}
